]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Don't create multiple copies of the (+) button
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 5 Oct 2009 16:21:51 +0000 (18:21 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 5 Oct 2009 16:54:41 +0000 (18:54 +0200)
Currently we recreate it every time Main.overview.show() is called,
 so destroy it to avoid having multiple copies floating around.

https://bugzilla.gnome.org/show_bug.cgi?id=597309

js/ui/overview.js

index 4d5b37cbb195b401d9a3df27b7c9494c31e59dbb..5f331a4aa04ecffa9d496681c332e2c1f297f3f5 100644 (file)
@@ -357,6 +357,10 @@ Overview.prototype = {
             this._activeDisplayPane.close();
         this._workspaces.hide();
 
+        this._addButton.actor.destroy();
+        this._addButton.actor = null;
+        this._addButton = null;
+
         // Create a zoom in effect by transforming the Overview group so that
         // the active workspace fills up the whole screen. The opposite
         // transition is used in show().